# config/database.rb
require 'sequel'

#DB = Sequel.connect('postgres://postgres:Xiehaijun945@129.159.47.69:19359/study')
DB = Sequel.connect(
     adapter: 'postgres', 
	 #encoding: 'utf8', 
     host: '129.159.47.69', 
     port: '19359', 	 
     database: 'study', 
     user: 'postgres', 
     password: 'Xiehaijun945'
   )
